---
layout: "default"
title: "underestimateCount"
description: "Swift documentation for 'underestimateCount': Return an underestimate of the number of elements in the given."
keywords: "underestimateCount,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-underestimatecount-t_-sequencetype_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-underestimatecount-t_-sequencetype_-t">func <wbr>underestimateCount&lt;T : SequenceType&gt;(<wbr>_: T)</a>
        
<div class="comment collapse" id="comment-func-underestimatecount-t_-sequencetype_-t"><div class="p">
    <p>Return an underestimate of the number of elements in the given
sequence, without consuming the sequence.  For Sequences that are
actually Collections, this will return count(x)</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func underestimateCount&lt;T : SequenceType&gt;(x: T) -&gt; Int</code>
    
    
</div></div>
</div>
